// 商品快照
const mongoose = require('mongoose');
let snapSchema = new mongoose.Schema({
    name: String,
    price: String,
    total: String,
    types: String,
    shopImg: Array,
    isStatue: Boolean,
    sale: String,
    shopId: String,
    order: {
        type: mongoose.Schema.Types.ObjectId,
        ref: 'orderModel'
    }

});
module.exports = mongoose.model('snapModel', snapSchema, 'snap');